package org.alwayssuper.protocol.gbt32960;

import org.alwayssuper.protostar.annotation.Field;
import org.alwayssuper.protostar.annotation.Message;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.alwayssuper.protocol.basics.GBTMessage;
import org.alwayssuper.protocol.commons.GBTRequestType;

import java.time.LocalDateTime;

/**
 * @author alwaysSuper
 */
@ToString
@Data
@Accessors(chain = true)
@Message(GBTRequestType.车辆登出)
public class G04 extends GBTMessage {
    @Field(length = 6, desc = "登出时间(YYMMDDHHMMSS)")
    private LocalDateTime logoutTime;
    @Field(length = 2, desc = "登出流水号:登出流水号与当次登入流水号一致")
    private int logoutSeqNo;

    @Override
    public int getSerialNo() {
        return logoutSeqNo;
    }
}
